﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="fsw.Web.Default" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="renderer" content="webkit" />
    <title>卡片管理首页</title>
    <link rel="stylesheet" href="/public/css/amazeui.min.css" />
    <link rel="stylesheet" href="/public/admin/css/layout.css" />
    <script src="/public/js/jquery.min.js"></script>
    <script src="/public/js/amazeui.min.js"></script>
    <script src="/public/layer/layer.js"></script>
    <!--[if lt IE 9]>
    <script src="/public/js/html5shiv.js"></script>
    <script src="/public/js/respond.min.js"></script>
    <![endif]-->
    <base target="iframe_body" />
</head>
<body>
    <form id="form1" runat="server">
        <div class="ui-north">
            <div class="logo">
                <img src="" />
            </div>
            <div class="user_base">
                <%=admin_info.UserName%><span class="am-icon-angle-down"></span>
                <ul>
                    <li><a href="Manager/manager_pwd.aspx">密码修改</a></li>
                    <li>
                        <asp:LinkButton ID="lbtnExit" runat="server" OnClick="lbtnExit_Click">注销登录</asp:LinkButton></li>
                    <%if (admin_info.isStatus == 1)
                      { %><li><a href="?action=clearcache">更新缓存</a></li>
                    <%} %>
                </ul>
            </div>
            <div class="other_link">
                <ul>
                    <li><a><%=admin_info.RealName%></a></li>
                    <li><a><%=admin_info.TypeId==1?"超级管理员":"普通管理员"%></a></li>
                </ul>
            </div>
        </div>
        <div class="ui-body">
            <div class="ui-west">
                <ul class="accordion">
                    <li class="active">
                        <div class="title"><a href="Right.aspx">管理首页</a></div>
                    </li>
                    <li>
                        <div class="title"><a href="javascript:;">卡片管理<span class="am-icon-chevron-right"></span></a></div>
                        <ul class="sub_nav">
                            <li><a href="/Card/Card.aspx">图片列表</a></li>
                        </ul>  
                    </li><%if(admin_info.TypeId==1){ %>
                    <li>
                        <div class="title"><a href="javascript:;">项目管理<span class="am-icon-chevron-right"></span></a></div>
                        <ul class="sub_nav">
                            <li><a href="/Project/Add.aspx">项目添加</a></li>
                            <li><a href="/Project/List.aspx">项目管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <div class="title"><a href="javascript:;">模块管理<span class="am-icon-chevron-right"></span></a></div>
                        <ul class="sub_nav">
                            <li><a href="/Mould/Add.aspx">模块添加</a></li>
                            <li><a href="/Mould/List.aspx">模块管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <div class="title"><a href="javascript:;">数据统计<span class="am-icon-chevron-right"></span></a></div>
                        <ul class="sub_nav">
                            <li><a href="/SytemData/ListPid.aspx">按项目统计</a></li>       
                            <li><a href="/Manager/LogCard.aspx">卡片复制日志</a></li>                    
                        </ul>
                    </li>
                    <li>
                        <div class="title"><a href="javascript:;">管理员管理<span class="am-icon-chevron-right"></span></a></div>
                        <ul class="sub_nav">
                            <li><a href="/Manager/Add.aspx">管理员添加</a></li>
                            <li><a href="/Manager/List.aspx?aid=1&tid=0">管理员管理</a></li>
                            <li><a href="/Manager/LogList.aspx">管理日志管理</a></li>                            
                        </ul>
                    </li><%} %>
                </ul>
            </div>
            <div class="ui-center"></div>
        </div>
    </form>
    <script>
        $(function () {
            $(".user_base").hover(function () {
                $("ul", this).css("display", "block");
            },
                function () {
                    $("ul", this).css("display", "none");
                });
            var Accordion = function (el, multiple) {
                this.el = el || {};
                this.multiple = multiple || false;
                var links = this.el.find('.title');
                links.on('click', { el: this.el, multiple: this.multiple }, this.dropdown)
            }
            Accordion.prototype.dropdown = function (e) {
                var $el = e.data.el;
                $this = $(this),
                $next = $this['next']();
                $next['slideToggle']();
                $this['parent']().toggleClass('active');
                $this['parent']().siblings(".active").removeClass("active");
                if (!e.data.multiple) {
                    $el['find']('.sub_nav').not($next).slideUp().parent().removeClass('open');
                };
            }
            var accordion = new Accordion($('.accordion'), false);
            $('.sub_nav li').bind('click', function () {
                $('.sub_nav li').removeClass('hover');
                $(this).addClass('hover');
            });
            $(".ui-center").html('<iframe name="iframe_body" src="/Right.aspx" width="100%" height="100%" frameborder="0"></iframe>');
        })
    </script>
</body>
</html>
